import { createSlice } from '@reduxjs/toolkit'

const listSLice=createSlice({
    name:"list",
    initialState:{
        start:"北京",
        end:"三亚",
        date:"2025/3/19"
    },
    reducers:{
        setStart(state, action){
            state.start=action.payload
        },
        setEnd(state, action){
            state.end=action.payload
        },
        setDate(state, action){
            state.date=action.payload
        },
    }
})
export const { setStart,setEnd,setDate } = listSLice.actions

export default listSLice.reducer